﻿using System;
using System.Reflection;

namespace Affinity.Synthesis.ExpressionCells.Metadata
{
    /// <summary>
    /// Provides the metadata representing a dependency upon a property.
    /// </summary>
    public class PropertyDependency
    {
        /// <summary>
        /// Constructor accepting the PropertyInfo to represent.
        /// </summary>
        /// <param name="property"></param>
        public PropertyDependency(PropertyInfo property)
        {
            Property = property;
        }

        /// <summary>
        /// Gets the PropertyInfo this metadata represents.
        /// </summary>
        public PropertyInfo Property { get; private set; }
    }
}
